package com.pe1n.yangtaopai.page.search.modle;

import com.pe1n.yangtaopai.bean.HotBean;
import com.pe1n.yangtaopai.bean.SearchBean;
import com.pe1n.yangtaopai.helper.InitRetrofitHelper;
import com.pe1n.yangtaopai.retrofitApi.RetrofitApi;

import retrofit2.Retrofit;
import rx.Observable;

/**
 * Created by Pe1n on 2016/11/28.
 */

public class ModleImpl implements IModle {

    private RetrofitApi retrofit = InitRetrofitHelper.getRetrofitInterfance();

    @Override
    public Observable<HotBean> getHotBean(String url) {
        return retrofit.getHotBean(url);
    }

    @Override
    public Observable<SearchBean> getSearchBean(String url) {
        return retrofit.getSearchBean(url);
    }
}
